package com.jbinfo.qingcaowan.studyManager.entity;

public class BookCard {
	
	private String no;
	
    private String cardId;

    private String cardCode;

    private String chapterId;
    
    private String chapterCode;
    
    private String chapterName;
    
    private String bookCode;
    
    private String bookName;
    
    private String bookId;

    private String cardName;

    private String cardImg;

    private String remark;

    private String createBy;

    private String createTime;

    private String updateBy;

    private String updateTime;

    private Integer delflag;

    private Integer cardNumber;

    private Integer cardMin;

    private Integer cardMax;

    private String cardContent;
    
    // detailId
    private String detailId;
    // taskOrder
    private String taskOrder;
    // taskDate
    private String taskDate;
    
    private String cardReadRate; // 当天已阅读卡片占比（阅读百分比）
    
    public String getChapterCode() {
		return chapterCode;
	}

	public void setChapterCode(String chapterCode) {
		this.chapterCode = chapterCode;
	}

	public String getChapterName() {
		return chapterName;
	}

	public void setChapterName(String chapterName) {
		this.chapterName = chapterName;
	}

	public String getBookId() {
		return bookId;
	}

	public void setBookId(String bookId) {
		this.bookId = bookId;
	}

	public String getBookCode() {
		return bookCode;
	}

	public void setBookCode(String bookCode) {
		this.bookCode = bookCode;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId == null ? null : cardId.trim();
    }

    public String getCardCode() {
        return cardCode;
    }

    public void setCardCode(String cardCode) {
        this.cardCode = cardCode == null ? null : cardCode.trim();
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId == null ? null : chapterId.trim();
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName == null ? null : cardName.trim();
    }

    public String getCardImg() {
        return cardImg;
    }

    public void setCardImg(String cardImg) {
        this.cardImg = cardImg == null ? null : cardImg.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getDelflag() {
        return delflag;
    }

    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }
    
	public Integer getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(Integer cardNumber) {
		this.cardNumber = cardNumber;
	}

	public Integer getCardMin() {
		return cardMin;
	}

	public void setCardMin(Integer cardMin) {
		this.cardMin = cardMin;
	}

	public Integer getCardMax() {
		return cardMax;
	}

	public void setCardMax(Integer cardMax) {
		this.cardMax = cardMax;
	}

	public String getCardContent() {
        return cardContent;
    }

    public void setCardContent(String cardContent) {
        this.cardContent = cardContent == null ? null : cardContent.trim();
    }

    public String getDetailId() {
		return detailId;
	}

	public void setDetailId(String detailId) {
		this.detailId = detailId;
	}

	public String getTaskOrder() {
		return taskOrder;
	}

	public void setTaskOrder(String taskOrder) {
		this.taskOrder = taskOrder;
	}

	public String getTaskDate() {
		return taskDate;
	}

	public void setTaskDate(String taskDate) {
		this.taskDate = taskDate;
	}

	public String getCardReadRate() {
		return cardReadRate;
	}

	public void setCardReadRate(String cardReadRate) {
		this.cardReadRate = cardReadRate;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bookCode == null) ? 0 : bookCode.hashCode());
		result = prime * result + ((bookId == null) ? 0 : bookId.hashCode());
		result = prime * result + ((bookName == null) ? 0 : bookName.hashCode());
		result = prime * result + ((cardCode == null) ? 0 : cardCode.hashCode());
		result = prime * result + ((cardContent == null) ? 0 : cardContent.hashCode());
		result = prime * result + ((cardId == null) ? 0 : cardId.hashCode());
		result = prime * result + ((cardImg == null) ? 0 : cardImg.hashCode());
		result = prime * result + ((cardMax == null) ? 0 : cardMax.hashCode());
		result = prime * result + ((cardMin == null) ? 0 : cardMin.hashCode());
		result = prime * result + ((cardName == null) ? 0 : cardName.hashCode());
		result = prime * result + ((cardNumber == null) ? 0 : cardNumber.hashCode());
		result = prime * result + ((chapterCode == null) ? 0 : chapterCode.hashCode());
		result = prime * result + ((chapterId == null) ? 0 : chapterId.hashCode());
		result = prime * result + ((chapterName == null) ? 0 : chapterName.hashCode());
		result = prime * result + ((createBy == null) ? 0 : createBy.hashCode());
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((delflag == null) ? 0 : delflag.hashCode());
		result = prime * result + ((detailId == null) ? 0 : detailId.hashCode());
		result = prime * result + ((no == null) ? 0 : no.hashCode());
		result = prime * result + ((remark == null) ? 0 : remark.hashCode());
		result = prime * result + ((taskDate == null) ? 0 : taskDate.hashCode());
		result = prime * result + ((taskOrder == null) ? 0 : taskOrder.hashCode());
		result = prime * result + ((updateBy == null) ? 0 : updateBy.hashCode());
		result = prime * result + ((updateTime == null) ? 0 : updateTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BookCard other = (BookCard) obj;
		if (bookCode == null) {
			if (other.bookCode != null)
				return false;
		} else if (!bookCode.equals(other.bookCode))
			return false;
		if (bookId == null) {
			if (other.bookId != null)
				return false;
		} else if (!bookId.equals(other.bookId))
			return false;
		if (bookName == null) {
			if (other.bookName != null)
				return false;
		} else if (!bookName.equals(other.bookName))
			return false;
		if (cardCode == null) {
			if (other.cardCode != null)
				return false;
		} else if (!cardCode.equals(other.cardCode))
			return false;
		if (cardContent == null) {
			if (other.cardContent != null)
				return false;
		} else if (!cardContent.equals(other.cardContent))
			return false;
		if (cardId == null) {
			if (other.cardId != null)
				return false;
		} else if (!cardId.equals(other.cardId))
			return false;
		if (cardImg == null) {
			if (other.cardImg != null)
				return false;
		} else if (!cardImg.equals(other.cardImg))
			return false;
		if (cardMax == null) {
			if (other.cardMax != null)
				return false;
		} else if (!cardMax.equals(other.cardMax))
			return false;
		if (cardMin == null) {
			if (other.cardMin != null)
				return false;
		} else if (!cardMin.equals(other.cardMin))
			return false;
		if (cardName == null) {
			if (other.cardName != null)
				return false;
		} else if (!cardName.equals(other.cardName))
			return false;
		if (cardNumber == null) {
			if (other.cardNumber != null)
				return false;
		} else if (!cardNumber.equals(other.cardNumber))
			return false;
		if (chapterCode == null) {
			if (other.chapterCode != null)
				return false;
		} else if (!chapterCode.equals(other.chapterCode))
			return false;
		if (chapterId == null) {
			if (other.chapterId != null)
				return false;
		} else if (!chapterId.equals(other.chapterId))
			return false;
		if (chapterName == null) {
			if (other.chapterName != null)
				return false;
		} else if (!chapterName.equals(other.chapterName))
			return false;
		if (createBy == null) {
			if (other.createBy != null)
				return false;
		} else if (!createBy.equals(other.createBy))
			return false;
		if (createTime == null) {
			if (other.createTime != null)
				return false;
		} else if (!createTime.equals(other.createTime))
			return false;
		if (delflag == null) {
			if (other.delflag != null)
				return false;
		} else if (!delflag.equals(other.delflag))
			return false;
		if (detailId == null) {
			if (other.detailId != null)
				return false;
		} else if (!detailId.equals(other.detailId))
			return false;
		if (no == null) {
			if (other.no != null)
				return false;
		} else if (!no.equals(other.no))
			return false;
		if (remark == null) {
			if (other.remark != null)
				return false;
		} else if (!remark.equals(other.remark))
			return false;
		if (taskDate == null) {
			if (other.taskDate != null)
				return false;
		} else if (!taskDate.equals(other.taskDate))
			return false;
		if (taskOrder == null) {
			if (other.taskOrder != null)
				return false;
		} else if (!taskOrder.equals(other.taskOrder))
			return false;
		if (updateBy == null) {
			if (other.updateBy != null)
				return false;
		} else if (!updateBy.equals(other.updateBy))
			return false;
		if (updateTime == null) {
			if (other.updateTime != null)
				return false;
		} else if (!updateTime.equals(other.updateTime))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "BookCard [no=" + no + ", cardId=" + cardId + ", cardCode=" + cardCode + ", chapterId=" + chapterId
				+ ", chapterCode=" + chapterCode + ", chapterName=" + chapterName + ", bookCode=" + bookCode
				+ ", bookName=" + bookName + ", bookId=" + bookId + ", cardName=" + cardName + ", cardImg=" + cardImg
				+ ", remark=" + remark + ", createBy=" + createBy + ", createTime=" + createTime + ", updateBy="
				+ updateBy + ", updateTime=" + updateTime + ", delflag=" + delflag + ", cardNumber=" + cardNumber
				+ ", cardMin=" + cardMin + ", cardMax=" + cardMax + ", cardContent=" + cardContent + ", detailId="
				+ detailId + ", taskOrder=" + taskOrder + ", taskDate=" + taskDate + ", cardReadRate=" + cardReadRate
				+ "]";
	}

}